package com.feign.servicefeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author yujiang
 * @description
 * @date 2019/7/23 20:50
 */
@RestController
public class SeeParamController {

    @Autowired
    SeeParamService seeParamService;

//    @RequestMapping(value = "/seeParam", method = RequestMethod.GET)
    @GetMapping("/seeParam") // 此注解是上面注解的简化
    public String seeParam(@RequestParam String param) {

        return seeParamService.seeParam(param) + " , 我来自服务：feign 。";
    }

}
